package com.itany.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itany.entity.User;
import com.itany.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author：汤小洋
 * Date：2019-12-16 15:07
 * Description：<描述>
 */
@RestController
public class UserController {

    @Reference
    private UserService userService;

    @RequestMapping("/findUser")
    public User findUser(Integer id){
        return userService.findById(id);
    }

}
